<?php


/**
 * @author baby&star
 *
 *
 */
class ZksdController extends Controller{
	//TODO - Insert your code here
	function actionIndex(){
		$wh = "";
		if($_POST){
			$wh = " and `name` like '%".$_POST['keyword']."%'";
		}
		$page = isset($_GET["page"])&&$_GET["page"]>0?$_GET["page"]:1;
		$zksd = new M_zksd();
		
		$data = $zksd->getList($wh,"id desc",$page,$this->createUrl("zksd/index"),18);
		
		$this->render("index",array("data"=>$data));
	}
}


?>